namespace Matrix.ServiceDiscovery.Enums
{
    /// <summary>
    /// 负载均衡策略枚举
    /// </summary>
    public enum LoadBalancingStrategy
    {
        /// <summary>
        /// 未指定策略
        /// </summary>
        None = 0,

        /// <summary>
        /// 轮询
        /// </summary>
        RoundRobin = 1,

        /// <summary>
        /// 随机
        /// </summary>
        Random = 2,

        /// <summary>
        /// 加权轮询
        /// </summary>
        WeightedRoundRobin = 3,

        /// <summary>
        /// 加权随机
        /// </summary>
        WeightedRandom = 4,

        /// <summary>
        /// 最少连接数
        /// </summary>
        LeastConnections = 5,

        /// <summary>
        /// 响应时间
        /// </summary>
        ResponseTime = 6,

        /// <summary>
        /// IP哈希
        /// </summary>
        IpHash = 7,

        /// <summary>
        /// 一致性哈希
        /// </summary>
        ConsistentHash = 8
    }
}